package beans;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;



public  class DepositoBean implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Integer id;
	private String tipo;
	private List<ItemDepositoBean> insumos = new ArrayList<ItemDepositoBean>();
	
	
	public DepositoBean() {
	
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getTipo() {
		return tipo;
	}


	public void setTipo(String tipo) {
		this.tipo = tipo;
	}


	public List<ItemDepositoBean> getInsumos() {
		return insumos;
	}


	public void setInsumos(List<ItemDepositoBean> insumos) {
		this.insumos = insumos;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((insumos == null) ? 0 : insumos.hashCode());
		result = prime * result + ((tipo == null) ? 0 : tipo.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DepositoBean other = (DepositoBean) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (insumos == null) {
			if (other.insumos != null)
				return false;
		} else if (!insumos.equals(other.insumos))
			return false;
		if (tipo == null) {
			if (other.tipo != null)
				return false;
		} else if (!tipo.equals(other.tipo))
			return false;
		return true;
	}
	
	
	
}
